<?php

function __autoload($className){
	include_once THANKPHP_ROOT.'/'.$className.'.class.php';
}

function showMsg($msg, $type){
	print $msg;
	if($type == 'error') exit;
}

function notDoubleQuotation($str){
	return str_replace('"', '\"', $str);
}

function notSingleQuotation($str){
	return str_replace("'", "\'", $str);
}